﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace QCM.Contract1
{
    [DataContract]
    public class Questionnaire
    {
        [DataMember]
        public int Id;

        [DataMember]
        public string Nom;

        [DataMember]
        public string Descriptif;
        
        [DataMember]
        public int nbQuestions;
        
        public Questionnaire(int id, string nom, string descriptif, int nbQuestions)
        {
            this.Id = id;
            this.Descriptif = descriptif;
            this.Nom = nom;
            this.nbQuestions = nbQuestions;
        }
    }
    [DataContract]
    public class ShortQuestionnaire
    {
        [DataMember]
        public int Id;

        [DataMember]
        public string Nom;

        public ShortQuestionnaire(int id, string nom)
        {
            this.Id = id;
            this.Nom = nom;
        }
    }
}
